package cn.kgc.bookservice.mapper;

import cn.kgc.librarycommon.pojo.Book;
import cn.kgc.librarycommon.pojo.BookInfo;
import cn.kgc.librarycommon.pojo.Borrow;
import cn.kgc.librarycommon.pojo.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookMapper {
    List<BookInfo> getAllBooks(@Param("bookName") String bookName, @Param("authorName") String authorName);
    List<Category> getAllCategory();
    List<Book> getEnableBook(Integer fid);
    Integer borrow(Borrow borrow);
}
